home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / printers / dosque / dosque.doc next >
Text File  |  1996-07-10  |  21KB  |  511 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.                                     DOSque
  16.  
  17.                 "DOS/Network Command/Program Execution Queue"
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                             (C)Copyright 1993-1994
  24.  
  25.                                       by
  26.  
  27.                                  Skip Bremer
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.                                  Version 2.4
  36.  
  37.                                   June 1994
  38.  
  39.                               TABLE OF CONTENTS
  40. ==============================================================================
  41.  
  42.      Topic                                                          Section
  43.      -----                                                          -------
  44.  
  45.      Introduction ......................................................  1
  46.  
  47.      Miscellaneous .....................................................  2
  48.           Requirements
  49.           Limits
  50.           Start-Up Options
  51.           Renaming DOSque
  52.           Required Files
  53.  
  54.      Quick Start .......................................................  3
  55.  
  56.      Start-Up Batch File ...............................................  4
  57.  
  58.      Commands ..........................................................  5
  59.  
  60.      Setup .............................................................  6
  61.  
  62.      Types of Jobs .....................................................  7
  63.  
  64.      Editing Jobs ......................................................  8
  65.  
  66.      DOSque Screen .....................................................  9
  67.  
  68.      Temporary Batch File .............................................. 10
  69.  
  70.      Credits ........................................................... 11
  71.  
  72.      Shareware ......................................................... 12
  73.           Evaluation Copy
  74.           Distribution
  75.           Registration
  76.           Disclaimer
  77.  
  78.                                INTRODUCTION (1)
  79. ==============================================================================
  80.  
  81. DOSque was designed as a simple yet effective queue system for both network
  82. and DOS stand-alone environments.  We work in an environment that demands an
  83. easily changeable, concise queue system to help us provide proper support for
  84. a large Netware 386 (tm) wide area network domain spanning Texas.  We need a
  85. DOS command queue to help us perform necessary network activities during
  86. non-production periods.  Because we could not find one that offers the
  87. flexibility we required, we wrote our own.  We hope it helps you as much as it
  88. has helped us in controlling our environment.  Please use DOSque as you see
  89. fit, but if you continue to use it, please abide with the Shareware section of
  90. this documentation.
  91.  
  92. Here is a quick overview of DOSque:
  93.  
  94. o    Small 25K executable.
  95.  
  96. o    Near unlimited number of queue items.
  97.  
  98. o    No memory taken by the queue system when running commands.
  99.  
  100. o    Run anything from the queue system including Terminate and Stay Resident
  101.      programs (TSRs).
  102.  
  103. o    No unnecessary restrictions like queue jobs being scheduled too close
  104.      together, etc.
  105.  
  106.  
  107. DOSque was written in Turbo Pascal 7.0 (real mode) with assembly extensions.
  108.  
  109.                               MISCELLANEOUS (2)
  110. ==============================================================================
  111.  
  112. Requirements
  113. ------------
  114. DOSque's only two known requirement is that it must run under DOS 3.1 or
  115. higher and it obviously requires a dedicated workstation when actively
  116. queuing.  It also runs fine from a Windows DOS session and from DOS shells.
  117.  
  118. Limits
  119. ------
  120. Maximum queue items: 400
  121. Maximum length of queue commands: 58
  122. Maximum length of queue descriptions: 58
  123.  
  124. Start-Up Options
  125. ----------------
  126. DOSque must started with the command DOSque in a batch file except for the
  127. first time when it is started with the /MAKE option.  See the Start-Up Batch
  128. File Setup section for complete information on this subject.
  129.  
  130. Required Files
  131. --------------
  132. The following files are necessary to run DOSque:
  133.  
  134. DOSQUE.EXE     The DOSque program.
  135.  
  136. DOSQUE.INI     The DOSque file that holds the optional encrypted password.
  137.  
  138. DOSQUE.DAT     The DOSque data file that holds all queue jobs and their
  139.                specific information.  You should not edit this file.
  140.  
  141. DOSQUE.LOG     The log file maintained by DOSque. 
  142.  
  143. QUE.BAT        The start-up batch file made the first time you run DOSque.
  144.                This file may be called any name you wish and should be placed
  145.                in your path.
  146.  
  147.                                QUICK START (3)
  148. ==============================================================================
  149.  
  150. To quickly get the queue system up and running, do the following (check the
  151. documentation later for specifics):
  152.  
  153. o    Place DOSQUE.EXE in the directory you wish to run it from.
  154.  
  155. o    Run DOSQUE.EXE /MAKE once.
  156.  
  157. o    Edit/rename the resulting QUE.BAT as necessary.
  158.  
  159. o    Place QUE.BAT in your path.
  160.  
  161. o    Run QUE.BAT (or whatever you renamed it to).
  162.  
  163. o    Add jobs as required.
  164.  
  165.                            START-UP BATCH FILE (4)
  166. ==============================================================================
  167.  
  168. As part of the initial setup performed by running DOSQUE.EXE /MAKE once, the
  169. file QUE.BAT will be made in DOSque's home directory.  You should place
  170. DOSQUE.EXE in the directory you wish to run it from before running it for the
  171. first time because the home directory information is used in creating this
  172. batch file.  If you have already run it once and wish to move DOSQUE.EXE, then
  173. you may either run DOSQUE.EXE again with a /MAKE parameter (creating a new
  174. QUE.BAT) or simply edit the existing QUE.BAT.
  175.  
  176. QUE.BAT should be in your path for easier loading, but DOSQUE.EXE does not
  177. need to be there.  DOSQUE.INI and DOSQUE.DAT will always be in the same
  178. directory as DOSQUE.EXE.
  179.  
  180. Here is a commented queue.BAT:
  181.  
  182. @echo off                          ;Cosmetics
  183. f:                                 ;Change to home drive and directory
  184. cd \login
  185. ::previous run file exists?        
  186. if exist dq$run.bat del dq$run.bat ;Delete previous run file
  187. dosque /batch %1                   ;Run DOSque
  188. ::no command?
  189. if not exist dq$run.bat goto END   ;Did we quit?
  190. ::run temporary batch file
  191. call dq$run                        ;Run batch file made by DOSque
  192. f:                                 ;Change to home again
  193. cd \login
  194. ::do it again                      ;Keep running the batch file (and the queue)
  195. f:                                 ;Change to home drive and directory
  196. cd \login
  197. que /rerun
  198. :END                               ;Place to go to when quitting
  199.  
  200. QUE.BAT changes to its home directory only to make it easier for you to manage
  201. a queue environment.  By keep the various batch file commands that DOSque may
  202. call to perform your jobs in one location, it is easier to manage the entire
  203. queue situation.  Of course, directly called DOS commands have no need to be
  204. in this directory.
  205.  
  206.                                  COMMANDS (5)
  207. ==============================================================================
  208.  
  209. DOSque has very few commands.  They are listed below along with an
  210. explanation of their activities.
  211.  
  212. F1   HELP      DOSque contains context sensitive help.  Press it anytime.
  213.  
  214. F2   ADD       This key will add new job definitions to the queue.  See the
  215.                Editing Jobs section for more.
  216.  
  217. F3   LOG       This key will view the END of the DOSQUE.LOG file, thereby
  218.                showing you the most recent queue activity.  When viewing the
  219.                log, the DEL key will delete it.  You should do this when the
  220.                log becomes so large that it takes noticeable time for DOSque to
  221.                find the end of it for viewing.  Although writing to it never
  222.                slows down no matter how large it is, reading can become slow
  223.                because DOSque reads sequentially through the file to find the
  224.                end of it for viewing.
  225.  
  226. F4   CHANGE    This key will allow you to change the highlighted job's
  227.                definition.  See the Editing Jobs section for more.
  228.  
  229. F5   COPY      This key will let you copy the highlighted job so that the new
  230.                job can then be more easily defined when editing it.  See the
  231.                Editing Jobs section for more.
  232.  
  233. F6   SHOW      This key toggles the Next Run/Last Run column's information.
  234.                Next Run shows in order the jobs as they will run data and time
  235.                wise.  Last Run shows the history of the last jobs run, also in
  236.                order.
  237.  
  238. F7   STATUS    This key toggles the highlighted job's status from Ready to
  239.                Hold.  When a job is ready, it will run at its queue data and
  240.                time.  When on hold, it will not.  If you take a job off hold
  241.                during the same day (date) that it was supposed to run, it will
  242.                run immediately, else it will automatically cycle to its next
  243.                run date.  When taking a job like this off hold, you will be
  244.                prompted if the job is going to run immediately.  The same
  245.                holds true when re-starting DOSque or returning from the DOS
  246.                shell option:  if there are any jobs ready to go, you will be
  247.                prompted with an option to temporarily place them on hold so
  248.                you can evaluate the queue situation first.
  249.  
  250. F8   DELETE    This key will let you delete the highlighted job from the
  251.                queue.  Once deleted, you can not undo it.
  252.  
  253. F9   RUN       This key will let you run the highlighted job, even though its
  254.                queue activation time has not arrived.  This does not change
  255.                its next queue time.
  256.  
  257. F10  QUIT      This key quits DOSque.  If a password has been made, then this
  258.                option requires the password.
  259.  
  260. ÆF1  DOS       This key allows you to open a temporary DOS session.  If a
  261.                password has been made, then this option requires a password.
  262.  
  263. ÆF10 PASSWORD  This key allows you to define or remove the optional system
  264.                password.  Among other times discussed above, the password will
  265.                be required when attempting to interrupt the screen saver
  266.                function.  This, of course, is not true if DOSque itself is
  267.                interrupting the screen saver to accomplish a queue job.
  268.  
  269. ESC  PREVIOUS  This key backs you out of prompts, if necessary.
  270.  
  271.                                   SETUP (6)
  272. ==============================================================================
  273.  
  274. To set up DOSque, place DOSQUE.EXE in the directory from which you would like
  275. it to run.  This directory does not have to be in your path.  From this
  276. directory, run DOSQUE /MAKE.  This command will make the sample start-up batch
  277. file, QUE.BAT.  You should then edit this batch file if needed and then placed
  278. it somewhere in your path.  That is all there is to it.  You are now ready to
  279. run QUE.BAT which will activate your queue system.
  280.  
  281.                               TYPES OF JOBS (7)
  282. ==============================================================================
  283.  
  284. There are basically two types of queue jobs that can be set up and run with
  285. DOSque:  weekly and date specific.
  286.  
  287. Weekly jobs are defined as follows:
  288.  
  289. o    runs at a specific time on the same day or days every week.
  290.  
  291. o    runs at a specific time every day.
  292.  
  293. Date Specific jobs are defined as follows:
  294.  
  295. o    runs at a specific time once in a lifetime.
  296.  
  297. o    runs at a specific time once each month.
  298.  
  299. o    runs at a specific time each year.
  300.  
  301.  
  302. See the Editing Jobs section for a complete breakdown on how to set up these
  303. types of jobs.
  304.  
  305.                                EDITING JOBS (8)
  306. ==============================================================================
  307.  
  308. Jobs are set up and edited by pressing F2 ADD or F4 EDIT from the main queue
  309. screen.  A pop-up editing window appears asking the following questions.
  310.  
  311. DOS Command:  This is the actual DOS command that will be placed in the
  312. temporary batch file for running when this job meets its next queue time.  The
  313. command can be any valid DOS command, including Terminate and Stay Resident
  314. (TSR) programs.  If you have more than one DOS command required, then place
  315. them into a batch file and place the path (if required) and the name as the
  316. answer to this question.
  317.  
  318. Description:  The optional screen description for this job.
  319.  
  320. Hour:  This is the hour of the day that this job will run.  It is always
  321. required and must be issued in 24 hour time.
  322.  
  323. Minute:  This is the minute of the hour of the day that this job will run.  It
  324. is always required.
  325.  
  326. Weekly/Date Specific:  Enter a W for weekly or a D for date specific.  Note
  327. that this item can always be changed later.  In fact, you can enter the below
  328. information for both weekly and date specific for this job and both will be
  329. remembered.  Then you may later switch between the two as desired by editing
  330. this job.  The answer you give here will dictate the next questions that are
  331. asked of you while editing the job.
  332.  
  333. If weekly...
  334.  
  335. Su Mo Tu We Th Fr Sa:  Place a Y in each day that you wish this job to run at
  336. the specified time.  The job will run on those days forever unless you kill
  337. the job or place it on hold (or you, of course, quit DOSque).
  338.  
  339. If date specific...
  340.  
  341. Day of month:  Enter the day between 1 and 31 of the month that you wish the
  342. job to run.  This is a required field for date specific jobs.  If you do not
  343. fill in the following month and year fields, then this job will run every
  344. month on this day at the specified time forever, else it can run on specific
  345. months (and/or years) on this month day.
  346.  
  347. Month:  Enter the month for this job to run on the month day.  If nothing is
  348. entered, then it will run every month.
  349.  
  350. Year:  Enter the year that this job should run on the month and day specified.
  351. If nothing is entered here, then it will run on the specified month and day
  352. every year.  If a year is given, then this becomes a once in a lifetime job.
  353.  
  354.                               DOSQUE SCREEN (9)
  355. ==============================================================================
  356.  
  357. The header at the top of the DOSque screen looks something like this:
  358.  
  359.                         |-------Days----------|or|--Date--|  |Next Run|
  360. DOS Command      HH:MM  Su Mo Tu We Th Fr Sa Su  Da Mo Year  MM-DD-YYYY  Status
  361. or                                                           |Last Run|
  362.  
  363. DOS Command: The actual command to be run for this job.
  364.  
  365. HH:MM: The job time.
  366.  
  367. Su Mo Tu We Th Fr Sa Su:  The days this job will run ONLY if this is a
  368. "weekly" job.
  369.  
  370. Da Mo Year:  The month day and optionally the month and optionally the year
  371. that this job will run ONLY if this is a "date specific" job.
  372.  
  373. Next Run:  This shows, in sorted order, the next date and time each job will
  374. run.
  375.  
  376. Last Run:  This shows, in sorted order, the last time each job ran.
  377.  
  378. Status:  One of the following:
  379.  
  380.      Ready  - Job is set up properly and will run at its next queue time.
  381.      Hold   - Job is on hold and can not run again until taken off hold with
  382.               the F7 key.  If a job is taken off hold on the same day on which
  383.               it is now late for its run, you will be asked to confirm as the
  384.               job will run immediately.
  385.      Bad    - Job is not set up properly; probably an incomplete date specific
  386.               edit resulting in no feasible run date.
  387.      Overdue- Job is ready but could not yet run.  This is probably resulting
  388.               from a job previous to this job that is still running and has
  389.               made this job go past its run time.  As soon as the other job
  390.               finishes, and DOSque returns to its main screen, this job will
  391.               become Ready and will run immediately - ONLY if the day is still
  392.               the same as that on which the job was queued to run.  If the day
  393.               has become the next calendar day, then this job's next run date
  394.               will cycle to the next allowable run time for this job.
  395.               Therefore, be careful when grouping jobs around the bewitching
  396.               hour (12:00 midnight)!
  397.  
  398.                           TEMPORARY BATCH FILE (10)
  399. ==============================================================================
  400.  
  401. When a job runs, DOSque makes a temporary batch file containing '@echo off'
  402. and the actual job DOS command.  The name of this batch file is DQ$RUN.BAT and
  403. it will be located in DOSque's home directory.
  404.  
  405. Example
  406. -------
  407. If a queue item's DOS command was this:
  408.  
  409.   copy thisfile f:\there
  410.  
  411. then the corresponding batch file would look like this:
  412.  
  413. @echo off
  414. copy thisfile f:\there
  415.  
  416.                                  CREDITS (11)
  417. ==============================================================================
  418.  
  419. Turbo Pascal is a trademark of Borland International.
  420.  
  421. MS-DOS is a trademark of Microsoft Corporation.
  422.  
  423. Netware and Novell are registered trademarks of Novell, Inc.
  424.  
  425. Windows is a registered trademark of Microsoft Corporation.
  426.  
  427. Trademarks of other companies or products mentioned in this file are the
  428. property of their respective companies.
  429.  
  430.                                 SHAREWARE (12)
  431. ==============================================================================
  432.  
  433. Evaluation Copy
  434. ---------------
  435. THIS IS NOT FREE SOFTWARE!  You may evaluate and use this product, but if you
  436. decide to make use of it on a regular basis, you must register your copy.
  437.  
  438. Note:  Businesses, government agencies and institutions are required to
  439. register this software package before extended use.
  440.  
  441. We offer several inducements to you for registering.  First of all, you will
  442. receive the most up-to-date copy of the program -- and we update the program
  443. on a regular basis.  Second, you will never see the shareware message again.
  444. Make no mistake, however -- this is a fully functional version of DOSque that
  445. is not "crippled" in any way.
  446.  
  447. Distribution
  448. ------------
  449. This is "user-supported" software.  You are hereby granted permission to
  450. distribute this evaluation copy of DOSque and its documentation, subject to
  451. the following conditions:
  452.  
  453. 1.  Shareware DOSque may be distributed freely without charge in evaluation
  454.     form only.
  455.  
  456. 2.  DOSque in its shareware form may not be sold, licensed, or a fee charged
  457.     for its use.  If a fee is charged in connection with DOSque, it must
  458.     cover the cost of copying or dissemination only.  Such charges must be
  459.     clearly identified as such by the originating party.  Under no
  460.     circumstances may the purchaser be given the impression that he is buying
  461.     a registered version of DOSque.
  462.  
  463. 3.  Shareware DOSque must be presented as a complete unit with documentation.
  464.     Neither DOSque nor its documentation may be amended or altered in any way
  465.     without permission of the copyright holder.
  466.  
  467. 4.  By granting you the right to distribute the evaluation form of DOSque,
  468.     you do not become the owner of DOSque in any form.
  469.  
  470. Any other use, distribution or representation of DOSque is expressly
  471. forbidden without written consent from the author.
  472.  
  473. Registration
  474. ------------
  475. The non-commercial single-user registration fee for DOSque is $40.00 US.  
  476. ($5 shipping is included.)
  477.  
  478. The commercial/government and multi-system site fee for DOSque is:
  479.  
  480.      Non-network environment:
  481.           Per site           - $160.00 US.
  482.      Network environment:
  483.           Per site           - $160.00 US.
  484. ($10 shipping is included.)
  485.  
  486. Send a check, money order or company P.O. for the appropriate amount to:
  487.  
  488.           Skip Bremer -DOSque
  489.           3401 Cactus Wren Way
  490.           Austin, Texas 78746
  491.  
  492. No credit cards.  Thank you.
  493.  
  494. Telephone: 512-328-2465
  495. Compuserve ID: 71614,2556
  496.  
  497. Disclaimer
  498. ----------
  499. The author does not warrant that the functions contained in this program will
  500. meet your requirements or that the program operation will be uninterrupted or
  501. error free.
  502.  
  503. The author specifically disclaims all other warranties, expressed or implied,
  504. including but not limited to implied warranties of fitness for any particular
  505. purpose and of merchantability.
  506.  
  507. In no event will the author be liable to you for any damages, including but
  508. not limited to any lost profits, lost savings, commercial damage or other
  509. incidental or consequential damages arising out of the use or inability to use
  510. this program, or for any claim by any other party.
  511.